# -*- coding:utf-8 -*-
# __author__ : "张百科"
# Date: 2021/1/23 20:01
# File: category.py
# IDE: PyCharm
from django.db import models
from utils.common import prefix

class Category(models.Model):
    parent_id = models.IntegerField(default=0)
    name = models.CharField(max_length=20)
    sort = models.IntegerField(default=1)
    remark = models.CharField(max_length=100, blank=True, null=True)
    level = models.IntegerField(default=1)
    logo = models.CharField(max_length=256, blank=True, null=True)
    is_delete = models.IntegerField(default=0)

    class Meta:
        managed = False
        db_table = prefix+'category'